package cn.zhibang.yygh2.service.hosp;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

import javax.swing.*;

@SpringBootApplication
//扫描指定包下面的所有注解，让注解生效
@ComponentScan("cn.zhibang.yygh2")
//扫描指定mapper层的注解
@MapperScan("cn.zhibang.yygh2.service.hosp.mapper")
@EnableSwagger2
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "cn.zhibang.yygh2")
public class ServiceHospApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceHospApplication.class,args);
    }

}
